export interface Result<T> {
  code: ResultCode
  message: string
  data: T
}

export enum ResultCode {
  SUCCESS = 200,
  EXCEPTION = 400,
  ERROR = 500,
  /**
   * 用户登录状态异常
   */
  USER_LOGIN_STATUS_EXCEPTION = 515,
  /**
   * 后台管理员登录状态异常
   */
  BACK_ADMIN_LOGIN_STATUS_EXCEPTION = 525,
}
